package com.timoon.sample.web.highcharts;

import org.apache.wicket.markup.html.panel.Panel;

import com.timoon.component.panel.highcharts.AreaPanel;
import com.timoon.component.panel.highcharts.PiePanel;
import com.timoon.component.panel.highcharts.parameter.HighChartsAreaParameter;
import com.timoon.component.panel.highcharts.parameter.HighChartsPieParameter;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */

public class UserPieAndAreaPanel extends Panel {

	public UserPieAndAreaPanel(String id) {
		super(id);
		// TODO Auto-generated constructor stub
		HighChartsAreaParameter areaParam=new HighChartsAreaParameter();
		areaParam.setTitle_text("'我是第二个面积图'");
		add(new AreaPanel("wk_chart_area",areaParam));
		
		HighChartsPieParameter pieParameter=new HighChartsPieParameter();
		pieParameter.setTitle_text("'我是第二个饼图'");
		
		add(new PiePanel("wk_chart_pie", pieParameter));
	}

}
